package thread;
/**
 * 普通的计算
 * 计算1+2+3+4+...+99+100的总和
 * @author zhaoyujie
 *
 */
public class CountTask2 {
	public static void main(String[] args) {
		long currTime = System.currentTimeMillis();
		int sum = 0;
		for(int i=1; i<=100; i++){
			sum += i;
		}
		System.out.println(sum);
		System.out.println("用时毫秒数："+(System.currentTimeMillis()-currTime));
	}
}
